package com.jsoft.service;

import com.jsoft.dto.DiscountDto;
import com.jsoft.dto.OrderItemDto;
import com.jsoft.dto.OrderDto;
import com.jsoft.dto.ServiceDto;

/**
 * Date: 05.09.13
 * Time: 11:48
 */

public interface OrderService {
    Integer createOrder(Integer placeId);

    void addDiscountsToOrder(Integer orderId, DiscountDto... discounts);

    void addDiscountsToOrderItem(Integer orderItemId, DiscountDto... discounts);



    void addOrderItemsToOrder(Integer orderId, OrderItemDto... items);

    void setClientCountToOrder(Integer orderId, Integer countClients);

    void addServiceToOrder(Integer orderId, ServiceDto... services);

    OrderDto recountOrder(Integer orderId/*, OrderItemDto... items*/);
}
